home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 8605 / 8605.xpi / chrome / content / settings.xul < prev    next >
Extensible Markup Language  |  2009-02-07  |  8KB  |  160 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css" ?>
  3. <?xml-stylesheet href="chrome://devany/skin/settings.css" type="text/css" ?>
  4. <prefwindow id="dA-settings"
  5.             title="deviantAnywhere settings"
  6.             xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  7.             xmlns:html="http://www.w3.org/1999/xhtml"
  8.             onload="ro_cvds_dASettings.init()"
  9.             ondialogaccept="return ro_cvds_dASettings.doOK()"
  10.             windowtype="devAny:settings">
  11.  
  12.     <script type="application/x-javascript" src="chrome://devany/content/utils.js"></script>
  13.     <script type="application/x-javascript" src="chrome://devany/content/settings.js"></script>
  14.  
  15.     <prefpane id="dA-main" label="Main" selected="true">
  16.         <preferences>
  17.             <preference id="dAAutoUpdate" name="deviantAnywhere.autoupdate" type="bool" instantApply="true" onchange="ro_cvds_dASettings.handleAutoUpdateClick()"/>
  18.             <preference id="dAChecktime" name="deviantAnywhere.checktime" type="int" />
  19.             <preference id="dAOpenNew" name="deviantAnywhere.openMsgOnNew" type="bool" instantApply="true" onchange="ro_cvds_dASettings.handleActionClick()"/>
  20.             <preference id="dANotify" name="deviantAnywhere.openNotification" type="bool"/>
  21.             <preference id="dAFocus" name="deviantAnywhere.focusTab" type="bool"/>
  22.             <preference id="dAPlaySound" name="deviantAnywhere.playsound" type="bool" instantApply="true" onchange="ro_cvds_dASettings.handleSoundClick()"/>
  23.             <preference id="dASound" name="deviantAnywhere.sound" type="string"/>
  24.             <preference id="dACustomLook" name="deviantAnywhere.customLook" type="bool" instantApply="true" onchange="ro_cvds_dASettings.handleCustomLookClick()"/>
  25.             <preference id="dABkgColor" name="deviantAnywhere.bkgcolor" type="string"/>
  26.             <preference id="dATextColor" name="deviantAnywhere.textcolor" type="string"/>
  27.             <preference id="dAShowIcon" name="deviantAnywhere.showIcon" type="bool" />
  28.         </preferences>
  29.  
  30.         <groupbox>
  31.             <caption label="Auto-update" />
  32.             <rows>
  33.                 <row align="left">
  34.                     <checkbox id="soundCheck" label="Use auto-update" preference="dAAutoUpdate"/>
  35.                 </row>
  36.                 <row align="center">
  37.                     <label control="checktime" value="Check for messages every" id="checkTimeLabel"/>
  38.                     <textbox id="checktime" size="3" preference="dAChecktime" type="number" min="1"/>
  39.                     <label value="seconds" id="checkTimeSuffix"/>
  40.                 </row>
  41.             </rows>
  42.         </groupbox>
  43.  
  44.         <groupbox>
  45.             <caption label="When I receive new messages" />
  46.             <rows>
  47.                 <row>
  48.                     <checkbox label="Show notification alert" id="notifyCheck" preference="dANotify"/>
  49.                 </row>
  50.                 <row>
  51.                     <checkbox label="Open messages page in new tab" id="openCheck" preference="dAOpenNew"/>
  52.                 </row>
  53.                 <row>
  54.                     <checkbox id="focusCheck" label="Focus the messages tab after opening" disabled="true" preference="dAFocus"/>
  55.                 </row>
  56.             </rows>
  57.         </groupbox>
  58.  
  59.         <groupbox>
  60.             <caption label="Sound" />
  61.             <rows>
  62.                 <row align="left">
  63.                     <checkbox id="soundCheck" label="Play sound" preference="dAPlaySound"/>
  64.                 </row>
  65.                 <row>
  66.                     <label id="soundLabel" control="sound" value="Choose a sound:" disabled="true"/>
  67.  
  68.                     <menulist id="sound" preference="dASound" disabled="true">
  69.                       <menupopup>
  70.                         <menuitem label="Splat" value="chrome://devany/content/sounds/splat.wav" />
  71.                         <menuitem label="Mix" value="chrome://devany/content/sounds/mix.wav"/>
  72.                         <menuitem label="Slice" value="chrome://devany/content/sounds/slice.wav"/>
  73.                         <menuitem label="Zing" value="chrome://devany/content/sounds/zing.wav"/>
  74.                       </menupopup>
  75.                     </menulist>
  76.                 </row>
  77.             </rows>
  78.         </groupbox>
  79.  
  80.         <groupbox>
  81.             <caption label="Appearances" />
  82.             <rows id="customLookRow">
  83.                 <row>
  84.                     <checkbox id="customLookCheck" label="Use custom look" preference="dACustomLook"/>
  85.                 </row>
  86.             </rows>
  87.             <grid>
  88.                 <columns>
  89.                     <column flex="1"/>
  90.                     <column flex="2"/>
  91.                     <column flex="3"/>
  92.                     <column flex="4"/>
  93.                 </columns>
  94.                 <rows>
  95.                     <row align="left">
  96.                         <label id="bkgColorLabel" control="bkgColor" value="Background color:" />
  97.                         <colorpicker type="button" preference="dABkgColor" id="bkgColor" color="#728776"/>
  98.                         <button id="defultBkg" onclick="ro_cvds_dASettings.setDefaultBkg()" label="Default" />
  99.                     </row>
  100.                     <row align="left">
  101.                         <label id="textColorLabel" control="numberColor" value="Text color:" />
  102.                         <colorpicker type="button" preference="dATextColor" id="textColor" color="#FFFFFF"/>
  103.                         <button id="defultText" onclick="ro_cvds_dASettings.setDefaultText()" label="Default" />
  104.                     </row>
  105.                 </rows>
  106.             </grid>
  107.             <rows id="useIconRow">
  108.                 <row>
  109.                     <checkbox id="showIconCheck" label="Show deviantArt icon" preference="dAShowIcon"/>
  110.                 </row>
  111.             </rows>
  112.  
  113.         </groupbox>
  114.  
  115.  
  116.     </prefpane>
  117.     
  118.     <prefpane id="dA-behave" label="Advanced">
  119.         <preferences>
  120.             <preference id="dAUseAutologin" name="deviantAnywhere.useautologin" type="bool" instantApply="true" onchange="ro_cvds_dASettings.handleAutoLoginClick()"/>
  121.             <preference id="dAUsername" name="deviantAnywhere.username" type="string" />
  122.         </preferences>
  123.  
  124.         <groupbox id="autoLoginBox">
  125.             <caption id="autoLoginLabel" label="Automatic login"/>
  126.             <grid>
  127.                 <columns>
  128.                   <column flex="1"/>
  129.                   <column flex="2"/>
  130.                 </columns>
  131.  
  132.                 <rows>
  133.                     <row>
  134.                         <checkbox id="autoLoginCheck" label="Use auto-login" preference="dAUseAutologin"/>
  135.                     </row>
  136.                     <row align="center">
  137.                         <label id="usernameLabel" control="username" value="Deviant name:" disabled="true"/>
  138.                         <textbox id="username" size="32" preference="dAUsername"  disabled="true"/>
  139.                     </row>
  140.                     <row align="center">
  141.                         <label id="passwordLabel" control="password" value="Password:"  disabled="true"/>
  142.                         <textbox id="password" size="32" type="password"  disabled="true"/>
  143.                     </row>
  144.                     <row align="right">
  145.                         <label id="loginLink" href="http://www.deviantart.com/users/login" class="text-link" value="Login myself"  disabled="true"/>
  146.                         <button id="whyBtn" label="Why?" accesskey="w" oncommand="alert('The fields are optional.\nIf you haven\'t already login in the browser, we use the \'Deviant name\' and \'Password\' to automatically log you in')"  disabled="true"/>
  147.                     </row>
  148.                 </rows>
  149.             </grid>
  150.         </groupbox>
  151.         
  152.     </prefpane>
  153.     
  154.     <hbox id="winButtons">
  155.         <button label="Ok" accesskey="O" oncommand="if(ro_cvds_dASettings.doOK()) window.close();"/>
  156.         <button label="Cancel" accesskey="C" oncommand="window.close()"/>    
  157.     </hbox>
  158.     
  159. </prefwindow>
  160.